package com.bluej.redis.demo;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.bluej.redis.tools.RedisUtil;

public class RedisSend {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext(new String[]{"springConfig.xml"});
        //从Spring容器中根据bean的id取出我们要使用的redisUtil对象
		
		RedisUtil redisUtil =ac.getBean("redisUtil", RedisUtil.class);
		
		redisUtil.sendMessage("java", "hello word!");
		
		redisUtil.sendMessage("python", "hello word!");
		
		
	}

}
